import 'package:flutter/material.dart';
import 'package:flutter_vant/main.dart';

class VanField extends HookWidget {
  Widget renderValue() {
    return Frame(
      styles: {
        CssRule.width: '100%',
        CssRule.height: '100%',
        CssRule.backgroundColor: 'red'
      },
      children: [TextView('1')],
    );
  }

  @override
  Widget build(BuildContext context) {
    return VanCell(slot: {VanCellSlot.value: this.renderValue});
  }
}
